import { Guard } from '../../constants/guard';

export default [
  {
    path: '/role',
    name: 'role',
    meta: { title: '角色管理', svg: 'role', layout: true, guardList: [Guard.RoleView, Guard.RoleManage] },
    redirect: '/role/list'
  },
  {
    path: '/role/list',
    name: 'roleList',
    meta: {
      title: '角色列表',
      svg: 'role-list',
      layout: true,
      parentMenu: 'role',
      guardList: [Guard.RoleView, Guard.RoleManage]
    },
    component: () => import('../../views/role/list/index.vue')
  },
  {
    path: '/role/guard',
    name: 'roleGuard',
    meta: {
      title: '角色权限',
      svg: 'device',
      layout: true,
      hidden: true,
      guardList: [Guard.RoleView, Guard.RoleManage, Guard.GuardView, Guard.GuardManage]
    },
    component: () => import('../../views/role/guard/index.vue')
  }
];
